﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using cwtrock.dao.impl;
using cwtrock.model;

namespace cwtrock.service.impl
{
    class SysCurrencyServiceImpl
    {
        private SysCurrencyDaoImpl dao =new SysCurrencyDaoImpl();

        public void save(SysCurrency currency)
        {
            dao.save(currency);
        }

        public void update(SysCurrency currency)
        {
            dao.update(currency);
        }

        public SysCurrency getSysCurrency(int id)
        {
            return dao.getSysCurrency(id);
        }

        public void delete(int id)
        {
            dao.delSysCurrency(id);

        }

        public List<SysCurrency> findAll()
        {
            return dao.getAllCurrency();

        }

    }
}
